
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class ArenaRankawardCfg : public ManualSingleton <ArenaRankawardCfg>
{
	friend ManualSingleton <ArenaRankawardCfg>;
public:
	ArenaRankawardCfg();
	~ArenaRankawardCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const ArenaRankawardCfgInfo *GetArenaRankawardCfgInfo(int32_t PrizeId);
	const ArenaRankawardCfgMap *GetArenaRankawardCfgMap() { return &m_ArenaRankawardCfgMap; }
private:
	ArenaRankawardCfgMap m_ArenaRankawardCfgMap;
};

#define  g_MakeArenaRankawardCfgTable() (ArenaRankawardCfg::Instance())
#define  g_GetArenaRankawardCfgTable() (ArenaRankawardCfg::GetInstance())
#define  g_DelArenaRankawardCfgTable() (ArenaRankawardCfg::Destroy())